//
//  DCTool.m
//  XXXXX
//
//  Created by point on 2018/1/16.
//  Copyright © 2018年 whiteboard. All rights reserved.
//

#import "DCTool.h"
#import "HttpCC.h"


@implementation DCTool



static DCTool *tool = nil;

+ (instancetype)allocWithZone:(struct _NSZone *)zone
{
    static dispatch_once_t onceToken;
    
    dispatch_once(&onceToken, ^{
        tool = [super allocWithZone:zone];
  
        
        
    });
    return tool;
}

//2.提供类方法
+ (instancetype)shareCamera
{
    return [[self alloc]init];
}

//3.严谨
- (id)copyWithZone:(NSZone *)zone
{
    return tool;
}

- (id)mutableCopyWithZone:(NSZone *)zone
{
    return tool;
}

- (void)haha {
    [HttpCC lala];
}

//- (void)install:(UIViewController *)vcx {
//    self.vc = vcx;
//    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(4 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//        NSLog(@"%@",   self.vc);
//    });
//}

@end
